home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / master / Examples / Shared_Lib / defs.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  820b  |  41 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  */
  5.  
  6. #define abs
  7. #include <exec/types.h>
  8. #include <exec/ports.h>
  9. #include <exec/semaphores.h>
  10. #include <exec/libraries.h>
  11. #include <exec/memory.h>
  12. #include <clib/exec_protos.h>
  13. #include <clib/alib_protos.h>
  14. #include <string.h>
  15.  
  16. #define HSIZE    128
  17. #define HMASK    (HSIZE-1)
  18.  
  19. #define CSIZE    64    /*  memory cache list size */
  20. #define CMAXMEM 32    /*  max cached blocks per array index */
  21.  
  22. #define LibCall __geta4 __regargs
  23. #define Prototype extern
  24.  
  25. typedef struct Message Message;
  26. typedef struct Library Library;
  27. typedef struct Node    Node;
  28. typedef struct List    List;
  29. typedef struct SignalSemaphore SignalSemaphore;
  30.  
  31. /*
  32.  *  include lib-protos.h AFTER our typedefs (though it doesn't matter in
  33.  *  this particular test case)
  34.  */
  35.  
  36. #include "test-protos.h"
  37.  
  38. extern const char LibName[];
  39. extern const char LibId[];
  40.  
  41.